<?php 
defined('RUN_KATANA') or die('Restricted access');
if(is_object($shop->getCurrentProvider())):
$countries = $shop->getCountryList();
?>
<?php echo $commander->getListCommandsPanel('s', ''); ?>
<fieldset class="edit_form">
	<label for="title"><?php echo ucfirst($txt->getWord('title')); ?></label>
    <?php echo $commander->getErrorField('title'); ?>
    <?php echo $commander->getInfoField('title'); ?>
    <input name="title" class="medium" type="text" value="<?php echo $shop->CurrentProvider->getTitle(); ?>" maxlength="80">
    
    <label for="title_import"><?php echo ucfirst($txt->getWord('import')).' '.ucfirst($txt->getWord('title')); ?></label>
    <?php echo $commander->getErrorField('title_import'); ?>
    <?php echo $commander->getInfoField('title_import'); ?>
    <input name="title_import" class="medium" type="text" value="<?php echo $shop->CurrentProvider->getTitleImport(); ?>" maxlength="50">
    
    <label for="contact"><?php echo ucfirst($txt->getWord('contact')).' '.$txt->getWord('name'); ?></label>
    <?php echo $commander->getErrorField('contact'); ?>
    <?php echo $commander->getInfoField('contact'); ?>
    <input name="contact" class="medium" type="text" value="<?php echo $shop->CurrentProvider->getContact(); ?>" maxlength="80">
    
    <label for="address"><?php echo ucfirst($txt->getWord('address')); ?></label>
    <?php echo $commander->getErrorField('address'); ?>
    <?php echo $commander->getInfoField('address'); ?>
    <input name="address" class="medium" type="text" value="<?php echo $shop->CurrentProvider->getAddress(); ?>" maxlength="80">
    
    <label for="zip"><?php echo ucfirst($txt->getWord('zip')); ?></label>
    <?php echo $commander->getErrorField('zip'); ?>
    <?php echo $commander->getInfoField('zip'); ?>
    <input name="zip" class="medium numeric" type="text" value="<?php echo $shop->CurrentProvider->getZip(); ?>" maxlength="10">
    
    <label for="city"><?php echo ucfirst($txt->getWord('city')); ?></label>
    <?php echo $commander->getErrorField('city'); ?>
    <?php echo $commander->getInfoField('city'); ?>
    <input name="city" class="medium" type="text" value="<?php echo $shop->CurrentProvider->getCity(); ?>" maxlength="80">
    
    <label for="country"><?php echo ucfirst($txt->getWord('country')); ?></label>
    <?php echo $commander->getErrorField('country'); ?>
    <?php echo $commander->getInfoField('country'); ?>
    <select class="medium" name="country" >
        <option value="--" <?php echo getIsSelectedHTML($shop->CurrentProvider->getCountry(), '--'); ?>><?php echo ucfirst($txt->getWord('undefined')); ?></option>
        <?php 
        if($countries)
        {
            foreach($countries as $country)
            { echo '<option value="'.$country['iso'].'" '.getIsSelectedHTML($shop->CurrentProvider->getCountry(), $country['iso']).'>'.$country['printable_name'].'</option>'; }
        }
        ?>
    </select>
    
    <label for="tel"><?php echo ucfirst($txt->getWord('phone')); ?></label>
    <?php echo $commander->getErrorField('tel'); ?>
    <?php echo $commander->getInfoField('tel'); ?>
    <input name="tel" class="medium" type="text" value="<?php echo $shop->CurrentProvider->getTel(); ?>" maxlength="40">
    
    <label for="fax"><?php echo ucfirst($txt->getWord('fax')); ?></label>
    <?php echo $commander->getErrorField('fax'); ?>
    <?php echo $commander->getInfoField('fax'); ?>
    <input name="fax" class="medium" type="text" value="<?php echo $shop->CurrentProvider->getFax(); ?>" maxlength="40">
    
    <label for="email"><?php echo ucfirst($txt->getWord('e-mail')); ?></label>
    <?php echo $commander->getErrorField('email'); ?>
    <?php echo $commander->getInfoField('email'); ?>
    <input name="email" class="medium" type="text" value="<?php echo $shop->CurrentProvider->getEmail(); ?>" maxlength="40">
    
    <label for="homepage"><?php echo ucfirst($txt->getWord('www')); ?></label>
    <?php echo $commander->getErrorField('homepage'); ?>
    <?php echo $commander->getInfoField('homepage'); ?>
    <input name="homepage" class="medium" type="text" value="<?php echo $shop->CurrentProvider->getHomepage(); ?>" maxlength="40">
    
    <label for="description"><?php echo ucfirst($txt->getWord('description')); ?></label>
    <?php echo $commander->getErrorField('description'); ?>
    <?php echo $commander->getInfoField('description'); ?>
    <textarea name="description" class="medium limit_250" style="height:100px;"><?php echo $shop->CurrentProvider->getDescription(); ?></textarea>
</fieldset>
<?php endif; ?>